home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / MPW Related / Animated Cursors / CursorTkl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-14  |  860 b   |  28 lines  |  [TEXT/MPS ]

  1. /******************************************************************************\
  2. * Header Files
  3. \******************************************************************************/
  4.  
  5. #include <Quickdraw.h>
  6. #include <Windows.h>
  7. #include "ShowCursor.h"
  8. #include "CursorTkl.h"
  9.  
  10.  
  11. #pragma segment Main
  12. /******************************************************************************\
  13. * FixCursor - Fix the cursor according to current conditions
  14. *
  15. * FixCursor sets the cursor to the arrow and makes it visible unless a DA's
  16. * window is open, in which case it leaves cursor handling up to the DA.
  17. \******************************************************************************/
  18.  
  19. void
  20. FixCursor ()
  21.     {
  22.     WindowPtr CurrWindow; //-> Currently active window
  23.  
  24.     CurrWindow = FrontWindow ();
  25.     if (CurrWindow == (WindowPtr) null || windKindPtr (CurrWindow) >= 0)
  26.         InitCursor ();
  27.     }
  28.